#include <stdio.h>

int main(){
    int sum, count = 0;
    scanf("%d", &sum);
    for(int c_1 = 1; c_1 <= sum; c_1++){
        for(int c_2 = 1; c_2 <= sum - c_1; c_2++){
            for(int c_5 = 1; c_5 <= sum - c_1 - c_2; c_5++){
                if (c_1 * 1 + c_2 * 2 + c_5 * 5 == sum){
                    count++;
                }
            }
            
        }
    }
    printf("count=%d", count);
}